Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce SharedLockbox #141

Draft
wants to merge 20 commits into
base: develop
Choose a base branch
from
Draft

Conversation

agusduha
Copy link
Member

No description provided.

0xDiscotech and others added 6 commits November 20, 2024 18:24
* feat: create shared lockbox contract with its interface and unit tests

* chore: polish tests and interfaces

* chore: run pre-pr

* chore: improve natspec

* chore: run pre-pr

* chore: update compiler version
* feat: integrate portal to lockbox

* fix: pr fixes

* test: refactor assert
#128)

* feat: create shared lockbox contract with its interface and unit tests

* chore: polish tests and interfaces

* chore: run pre-pr

* chore: improve natspec

* chore: run pre-pr

* feat: add liqudity migrator contract with its unit test and interface

* chore: remove underscore on stack var

* chore: add todo

* chore: run pre-pr

* chore: add contract title natspec and proxied

* refactor: integrate testing suite with common test

* chore: pre-pr

* chore: add spec test
* feat: integrate portal to lockbox

* fix: pr fixes

* test: refactor assert

* feat: integrate system config with superchain config

* fix: remove OPCM interop

* test: add dependency counter test
if (!authorizedPortals[msg.sender]) revert Unauthorized();

// Using `donateETH` to avoid triggering a deposit
IOptimismPortal(payable(msg.sender)).donateETH{ value: _value }();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it necessary to cast the msg.sender as payable here?

Suggested change
IOptimismPortal(payable(msg.sender)).donateETH{ value: _value }();
IOptimismPortal(msg.sender).donateETH{ value: _value }();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because it implements payable functions

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

/// @custom:semver 1.1.1-beta.2
string public constant version = "1.1.1-beta.2";

// Mapping from chainId to SystemConfig address
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Mapping from chainId to SystemConfig address
// Dependency set of chain ids that are part of the same cluster

Copy link
Collaborator

@gotzenx gotzenx Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is bugged, not sure why is this showing up here. Pls ignore

agusduha and others added 13 commits November 28, 2024 17:25
* feat: Add pause check

Co-authored-by: 0xParticle <[email protected]>
Co-authored-by: gotzenx <[email protected]>
Co-authored-by: Joxess <[email protected]>

* test: add tests natspecs

---------

Co-authored-by: 0xParticle <[email protected]>
Co-authored-by: gotzenx <[email protected]>
Co-authored-by: Joxess <[email protected]>
* feat: use superchain config lockbox in portal

* test: add new sharedlockbox test
…ox-3

fix: merge conflict in develop sync
* feat: liquidity migrator deployment

* test: fix comment

* test: fix internal variables names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants